package yang.itcode.mapper;

import cn.hutool.json.JSONObject;
import org.apache.ibatis.annotations.Mapper;
import yang.itcode.model.pojo.Cost;

import java.util.List;

@Mapper
public interface CostMapper {
    int insert(Cost cost);

    int update(Cost cost);

    int deleteById(Integer id);

    Cost selectById(Integer id);

    List<Cost> selectAll();

    List<Cost> selectByCondition(JSONObject condition);
}

